import { createApp } from 'vue'

import 'normalize.css/normalize.css' // CSS重置的现代替代方案
import 'amfe-flexible'
import '@/styles/index.scss' // global css
import App from './App.vue'
import router from '@/router'
import pinia from './store'

// UI框架 vant
import 'vant/lib/index.css'

// 引入全局组件布局
// svg-icons注册导入
import 'virtual:svg-icons-register'
import SvgIcon from '@/components/SvgIcon/index.vue'// svg component
const app = createApp(App)

// 注册icon组件
app.component('svg-icon', SvgIcon)

app.use(pinia)
app.use(router)
  .mount('#app')
